import 'package:flutter_test/flutter_test.dart';

import 'package:yl_kit/yl_kit.dart';

void main() {
  test('adds one to input values', () async {
    //启动加密
    // YLAESEncrypt.instance.setAesEncryptKey(key: 'PKy9L&7*uvMLB^ga');
    // String encty = YLAESEncrypt.instance.aesEncrypter16('123456');
    // print("加密=========$encty");

    // String result = YLAESEncrypt.instance.aesDecrypter16(encty);

    // final publicKey = await parseKeyFromFile<RSAPublicKey>('data/public.pem');
    // final privKey =
    //     await parseKeyFromFileSync<RSAPrivateKey>('data/private.pem');

    // print(
    //     "启动加密===${YLBase64Encrypt.decodeBase64('''LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlDWEFJQkFBS0JnSFM2R1Z1VFdIZGtYcGRjRkJWcHdoTzNSZXAxVW5LUXE4ZU11cDF3VTNETW1yZmRZd3hUCnFFYTVEamh3RmZlS1JWU0FGWUQ1T3A2WFkzbDFlamcvanJFNVcxL21TVnlBZVE4UWY2cjdjSnlMVlhqUEVXUlEKOXBrTnlTY0YycVJXYXJsbGU0V2djKzl4N0VwZ1lxZ0x0aFdCQ2VnNm9kR3gwcElJeWxBVlJENmpBZ01CQUFFQwpnWUFhRUFkamJCWGZxcGg0UVVYMnRnTndkWVoxNERaRmdFbnFwMkJ2a01vQXNKNkhHVFpwWlRCNGdnOUx5TE1PCjcxK2xpMmZCd1dRMlR1VVdGSVh5a3paZnpBUWtkUlY5MGhDZHlXa3hvc055dkJVWWlxdnBOM0tJa2k4bEZLSmwKSU00aEpMUWlKM2hqSHo4TVBXd3l2eUg1R1NOb1UyTnB5ZHZsYTV3ejNoMGJHUUpCQU1NcXhKL3p5NHF0U1J1KwpQT1g0ZmtjenFwdEV0b00zcGZlOWR4MURCM3k4SmZLaGN2Ri9SNC91ZURORHY1OVFLM01haDFoWWYvZXRmcmNUCjc2V2RUeWNDUVFDWkhFQjlvc29mZzJIOXFTV0VQb1JXcFBoSCt3SEJKM0h4OVlSSDE3TXdBNGY1bTlSTjRyYWUKcHNKRDdSajNKMHZ6N2RrcDRSbW0zd1dUdFlMWHVvSWxBa0VBaUFyZzRxcDdZR0JvVExsd0U5SUNuRGxNbkV6cQplRThyRnFUd1NlcDJacUYwUmt2NkpwTFZYR1FiVDRqVEl3Y3NNbUQwcFVXVGRoOXU2OGt1ekovNkV3SkFjMWpxCmFQd2tJL3VaN2p6bzY2a2hrQmoyaDF2ZHBZT3UveWNGQWc3Sml1bU9IZ2s4dDNTT09oWE5rdGpqandkRzNEMGEKOXNjRHlVaUpiZzgzeEloWkZRSkJBSmJ1LzZzK1U3ZFpnNm9BbW9POHNXTmgrQXBlMmxTVnR5YllqaXc2U1ZGTQpzRHVBWFNpa3ZqRDdSL1oyVllBdC95a1dKQzBRWTJxek9hOCtVYk52ZDJRPQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQ==''')}   ");

    // await YLAESEncrypt.instance.setEncryptKey();

    // String encty = YLAESEncrypt.instance.encrypter(
    //     '[{"name":"跳跳鸟","id":1,"iconImage":"assets/flappybird/sprites/redbird_midflap.png","pagePath":"/flappybird_page"},{"name":"跳跳鸟","id":2,"iconImage":"assets/fallblocks/sprites/fb_icon.jpg","pagePath":null},{"name":"跳跳鸟","id":3,"iconImage":"assets/cuttherope/sprites/ch_icon.png","pagePath":null}]');
    // print("加密=========$encty");

    // String result = YLAESEncrypt.instance.decrypter(encty);

    // print("解密=========$result");

    // SpUtils.setString('aaa', 'AAA');
    // SpUtils.setString('bbb', 'BBB');
    // SpUtils.setString('ccc', 'CCC');
    // SpUtils.setString('ddd', 'DDD');
    // SpUtils.setString('eee', 'EEE');
    // // SpUtils.removeWithOut(['aaa', 'ccc']);

    // String aaa = SpUtils.getString('aaa');
    // String bbb = SpUtils.getString('bbb');
    // String ccc = SpUtils.getString('ccc');
    // String ddd = SpUtils.getString('ddd');
    // String eee = SpUtils.getString('eee');

    // print("=========$aaa=========$bbb=========$ccc=========$ddd=========$eee");

    // print("=========${testU.text2()}");
  });
}
